package com.demo.service;

import com.demo.dto.CommentFormDTO;
import com.demo.dto.Result;
import com.demo.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.query.CommentListQuery;
import com.demo.vo.CommentVO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Zeng
 * @since 2022-03-23
 */
public interface CommentService extends IService<Comment> {

    Result<Comment> postComment(CommentFormDTO commentFormDTO);

    Result<Comment> delete(Integer commentId);

    Result<List<CommentVO>> getListByAnswerId(CommentListQuery commentListQuery);
}
